{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "vscode": {
     "languageId": "plaintext"
    }
   },
   "outputs": [],
   "source": [
    "# 获取用户输入的成绩\n",
    "score = float(input(\"请输入学习成绩: \"))\n",
    "\n",
    "# 根据成绩判断等级\n",
    "if score >= 90:\n",
    "    grade = 'A'\n",
    "elif 60 <= score < 90:\n",
    "    grade = 'B'\n",
    "else:\n",
    "    grade = 'C'\n",
    "\n",
    "# 输出结果\n",
    "print(f\"该同学的成绩等级为: {grade}\")"
   ]
  }
 ],
 "metadata": {
  "language_info": {
   "name": "python"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
